package com.itheima.movies.service.impl;

import com.itheima.movies.dao.MoviesDao;
import com.itheima.movies.domain.Movies;
import com.itheima.movies.service.MoviesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class MoviesServiceImpl implements MoviesService {

    @Autowired
    private MoviesDao moviesDao;
    @Override
    public List<Movies> findAll() {
        return moviesDao.findAll();

    }
}
